package com.lkbaby.decorator;

/**
 * 装饰器
 */
public class NodeDecorator implements TextNode {

	protected TextNode textNode;

	@Override
	public void setText(String text) {
		this.textNode.setText(text);
	}

	@Override
	public String getText() {
		return this.textNode.getText();
	}

	public NodeDecorator(TextNode textNode) {
		this.textNode = textNode;
	}
}
